package cn.wp.ewallet.upms.service.impl;

import cn.wp.common.core.util.BeanUtil;
import cn.wp.ewallet.upms.dao.BsPrivFuncRelDao;
import cn.wp.ewallet.upms.model.dto.BsPrivFuncRelDto;
import cn.wp.ewallet.upms.service.BsPrivFuncRelService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * 权限包含功能-业务逻辑层实现
 * Created by zhangyongli on 2019/12/25
 */
@Service
public class BsPrivFuncRelServiceImpl implements BsPrivFuncRelService {

    @Autowired
    private BsPrivFuncRelDao bsPrivFuncRelDao;

    @Override
    public List<BsPrivFuncRelDto> getBsPrivFunRelBySystemUserId(String systemUserId) {
        return BeanUtil.listCopyProperties(bsPrivFuncRelDao.selectBsPrivFunRelBySystemUserId(systemUserId), BsPrivFuncRelDto.class);
    }
}